package com.shenmazong.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author PC
 */
@Data
@Document(indexName = "articlevo")
public class ArticleVo implements Serializable {
    /**
     * 文章id
     */
    @Id
    private Long articleId;

    /**
     * 文章标题，限制长度最高为14个汉字
     */
    @Field(value = "articleTitle",type = FieldType.Text,analyzer = "ik_max_word")
    private String articleTitle;

    /**
     * 文章类型
     */

    @Field
    private Long articleType;


    @Field(value = "typeName",type = FieldType.Keyword)
    private String typeName;

    /**
     * 文章展示，最少展示28个汉字
     */
    @Field(value = "articleShow",type = FieldType.Text,analyzer = "ik_max_word")
    private String articleShow;


    /**
     *  发布人姓名
     */
    @Field(value = "userName",type = FieldType.Text,analyzer = "ik_max_word")
    private String userName;


    /**
     * 点赞数
     */
    private Long articleCount;

    /**
     * 浏览数
     */
    private Long articleNumber;

    /**
     *  同步Es唯一标识
     */
    private Integer esStatus;








}
